<extend name="_Layout/main"/>

<block name="universal">
    "current_version": "{:C('CURRENT_VERSION')}",
    "check_version_url": "{:U('Admin/SystemUpdate/checkVersion')}",
    "index_url": "{:U('Index/index')}",
    "ganttData": {:$ganttData}
   
</block>

<block name="libs">
    <script src="__PUBLIC__/libs/jquery_gantt/js/jquery.fn.gantt.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/libs/jquery_gantt/css/style.css" />
</block>

<block name="container">
    <div class="container">
        <div id="dashboard">
            <div class="row">
                <div class="col-xs-12 col-sm-6 col-md-4">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <div class="panel-actions"></div>
                            <i class="fa fa-home"></i> 关于{:C('PRODUCT_NAME')}
                        </div>
                        <div class="panel-body">
                            <p class="text-indent">{:C('PRODUCT_INFO')}</p>
                            <p class="text-indent">{:C('COMPANY_INFO')}</p>
                        </div>
                    </div>
                </div>

                <div class="col-xs-12 col-sm-6 col-md-4">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <div class="update pull-right"></div>
                            <i class="fa fa-cog"></i> 系统信息
                        </div>
                        <div class="panel-body">
                            <table class="table table-condensed text-overflow">
                                <tbody>
                                    <tr>
                                        <td>CoreThink版本</td>
                                        <td>v{:C('CURRENT_VERSION')}</td>
                                    </tr>
                                    <tr>
                                        <td>ThinkPHP版本</td>
                                        <td>{$Think.VERSION}</td>
                                    </tr>
                                    <tr>
                                        <td>服务器操作系统</td>
                                        <td>{$Think.const.PHP_OS}</td>
                                    </tr>
                                    <tr>
                                        <td>运行环境</td>
                                        <td>
                                            <?php
                                                $server_software = explode(' ', $_SERVER['SERVER_SOFTWARE']);
                                                echo $server_software[0];
                                            ?>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>PHP版本</td>
                                        <td><?php echo PHP_VERSION; ?></td>
                                    </tr>
                                    <tr>
                                        <td>MYSQL版本</td>
                                        <td><php>$system_info_mysql = M()->query("select version() as v;");</php>{$system_info_mysql.0.v}</td>
                                    </tr>
                                    <tr>
                                        <td>上传限制</td>
                                        <td>{:ini_get('upload_max_filesize')}</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>

                <div class="col-xs-12 col-sm-6 col-md-4">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <div class="panel-actions"></div>
                            <i class="fa fa-th-list"></i> 产品团队
                        </div>
                        <div class="panel-body">
                            <table class="table table-condensed">
                                <tbody>
                                        <tr>
                                            <td>总策划</td>
                                            <td>江如意</td>
                                        </tr>
                                        <tr>
                                            <td>产品设计及研发团队</td>
                                            <td>江如意</td>
                                        </tr>
                                        <tr>
                                            <td>界面及用户体验团队</td>
                                            <td>江如意、赵瀚卿</td>
                                        </tr>
                                        <tr>
                                            <td>公司全称</td>
                                            <td><a href="{:C('WEBSITE_DOMAIN')}">{:C('COMPANY_NAME')}</a></td>
                                        </tr>
                                        <tr>
                                            <td>官方网址</td>
                                            <td><a href="{:C('WEBSITE_DOMAIN')}">{:C('WEBSITE_DOMAIN')}</a></td>
                                        </tr>
                                        <tr>
                                            <td>官方QQ群</td>
                                            <td>
                                                <a target="_blank" href="http://shang.qq.com/wpa/qunwpa?idkey=1ac8801c2f274de186f5c52203f428a1726ba9e3018aa579399b4c6161ca63cd">
                                                    <img border="0" src="" alt="CoreThink交流群" title="CoreThink交流群">
                                                </a>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>联系我们</td>
                                            <td>{:C('COMPANY_EMAIL')}</td>
                                        </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>


        <div class="chart">
            <div class="row">

                <div class="col-xs-12 col-sm-6 col-md-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <div class="pull-right">
                                <button id="daterange_set" class="btn btn-default btn-sm" style="margin-top:-5px;margin-right:-5px;"><span class="fa fa-cog"></span></button>
                            </div>
                            <i class="fa fa-area-chart"></i> 项目进度表
                        </div>
                        <div class="panel-body">
                            <!--<h5 class="text-center">{$start_date}－{$end_date} {$count_day}天用户增长</h5>
                             <canvas id="mychart" style="width:100%;height:300px;"></canvas> -->
                            <div class="gantt"></div>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
</block>

